package com.boot.system.wrapper;

import cn.hutool.core.bean.BeanUtil;
import com.boot.framework.common.BaseEntityWrapper;
import com.boot.system.dto.SysFileDTO;
import com.boot.system.entity.SysFileEntity;

/**
 * @author yangfan
 * @date 2024/2/1
 * @Description
 */
public class SysFileWrapper extends BaseEntityWrapper<SysFileEntity, SysFileDTO> {
    public static SysFileWrapper build() {
        return new SysFileWrapper();
    }
    @Override
    public SysFileDTO entityDTO(SysFileEntity entity) {
        return BeanUtil.copyProperties(entity,SysFileDTO.class);
    }

    @Override
    public SysFileEntity dtoEntity(SysFileDTO dto) {
        return BeanUtil.copyProperties(dto,SysFileEntity.class);
    }
}
